package com.qdlc.p2p.dal.dao;


import com.qdlc.p2p.dal.common.dao.BaseDao;
import com.qdlc.p2p.dal.dto.EnjoyUpload;

import java.util.List;

/**
 * Created by D on 2016/1/20.
 */
public interface EnjoyUploadDao extends BaseDao<EnjoyUpload> {

    /**
     * 查到当前商品ID所有EnjoyUpload对象
     * @param id 商品ID
     * @return List<EnjoyUpload>
     */
    List<EnjoyUpload> findPicByGoodsId(long id);

    /**
     * 通过商品Id与图片类型获取所有图片
     */
    List findPicByIdAndType(long id, int type);
}
